package cn.yanghx.pay.conf.property;

import lombok.Data;

/**
 * 微信app支付相关配置
 *
 * @author yanghx
 */
@Data
public class WechatAppPayProperties {

    //("appId")
    private String appId;

    //("商户id")
    private String mchId;

    //("商户证书序列号")
    private String mchSerialNo;

    //("api密钥")
    private String apiV3Key;

    //("商户私钥。apiclient_key.pem中的文本")
    private String privateKey;

    //("通知url")
    private String notifyUrl;

    public boolean isEmpty() {
        return null == appId
                || null == mchId
                || null == mchSerialNo
                || null == apiV3Key
                || null == privateKey;

    }
}

